package com.mk.web.proxy.cglib;

import net.sf.cglib.proxy.Enhancer;

/**
 * Created by WangChen on 2018/11/29 14:41.
 */
public class Client {
    
    public static void main(String [] args){
        Enhancer enhancer = new Enhancer();
        enhancer.setSuperclass(Boss.class);
        enhancer.setCallback(new Secretary());
        Boss boss = (Boss) enhancer.create();
        boss.talk();

    }
}
